Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Redesign the active sessions view and rework idletime #2006

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

zusorio
Copy link
Member

@zusorio zusorio commented Nov 15, 2024

Rework idletime:

  • Renamed idletime to idle_status object
  • Also return termination time from config
  • Show card on active session if session will be terminated soon

Overhaul parts of the session view:

  • Show times relative to now
  • Show session info as one text block instead of split
  • Redesign last requested session and active session card
  • Show additional info on active session cards as mini cards

Closes #1783
Closes #1486

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.00%. Comparing base (6a3ca78) to head (f912ba2).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2006      +/-   ##
==========================================
+ Coverage   84.74%   85.00%   +0.25%     
==========================================
  Files         212      213       +1     
  Lines        7068     7075       +7     
  Branches      493      490       -3     
==========================================
+ Hits         5990     6014      +24     
+ Misses        919      903      -16     
+ Partials      159      158       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link

github-actions bot commented Nov 15, 2024

API Changelog 4.13.1.dev52+g40de9eb3

GET /api/v1/sessions

  • ⚠️ removed the required property '/items/last_seen' from the response with the '200' status
  • added the required property '/items/idle_state' to the response with the '200' status

POST /api/v1/sessions

  • ⚠️ removed the required property 'last_seen' from the response with the '200' status
  • added the required property 'idle_state' to the response with the '200' status

GET /api/v1/sessions/{session_id}

  • ⚠️ removed the required property 'last_seen' from the response with the '200' status
  • added the required property 'idle_state' to the response with the '200' status

GET /api/v1/users/{user_id}/sessions

  • ⚠️ removed the required property '/items/last_seen' from the response with the '200' status
  • added the required property '/items/idle_state' to the response with the '200' status

Copy link

github-actions bot commented Nov 15, 2024

A Storybook preview is available for commit 40de9eb.
➡️ View Storybook
➡️ View Chromatic build

This comment has been minimized.

Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General structure looks good. Design for the session history has to be discussed team-internally before.

@MoritzWeber0 MoritzWeber0 changed the title feat: Redesign the sessions view and rework idletime feat: Redesign the active sessions view and rework idletime Nov 18, 2024

This comment has been minimized.

@zusorio zusorio force-pushed the sessions-redesign branch 2 times, most recently from 868457d to 0115bcf Compare November 18, 2024 11:19

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Rework idletime:
- Renamed idletime to idle_status object
- Also return termination time from config
- Show card on active session if session will be terminated soon

Overhaul parts of the session view:
- Show times relative to now
- Show session info as one text block instead of split
- Redesign last requested session and active session card
- Show additional info on active session cards as mini cards

Closes #1783
Closes #1486
Copy link

sonarcloud bot commented Nov 19, 2024

Copy link

This report was generated by comparing 40de9eb with 6a3ca78.
If you would like to check difference, please check here.

change detected

ArtifactName: reg

item count
pass 337
change 29
new 4
delete 0
📝 Report

Differences

Session Components_Active Sessions_Readonly Session Success State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Readonly Session Success State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Failed State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Failed State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Not Found State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Not Found State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Pending State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Pending State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Preparation Pending State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Preparation Pending State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Preparation Running State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Preparation Running State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Running State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Running State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Shared With User_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Shared With User_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Sharing Enabled_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Sharing Enabled_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Terminated State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Terminated State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Unknown State_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session Unknown State_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session With Feedback Enabled_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Session With Feedback Enabled_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Shared Session_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Active Sessions_Shared Session_mobile.png

actual Actual
expected Expected
difference Difference

Session Components_Session History_Resolved Session History.png

actual Actual
expected Expected
difference Difference

Session Components_Session Overview_All Selected_desktop.png

actual Actual
expected Expected
difference Difference

Session Components_Session Overview_Overview_desktop.png

actual Actual
expected Expected
difference Difference

New Items

Session Components_Active Sessions_Session Shared With User Terminating Soon_desktop.png

NewItem

Session Components_Active Sessions_Session Shared With User Terminating Soon_mobile.png

NewItem

Session Components_Active Sessions_Session Terminating Soon_desktop.png

NewItem

Session Components_Active Sessions_Session Terminating Soon_mobile.png

NewItem

@MoritzWeber0 MoritzWeber0 merged commit 1fa7449 into main Nov 19, 2024
31 checks passed
@MoritzWeber0 MoritzWeber0 deleted the sessions-redesign branch November 19, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use relative instead of absolute datetimes Display time until session will be terminated
2 participants